<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/7/21
  Time: 9:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int num = 10;
    String[] arr = {"hello","world"};
    pageContext.setAttribute("arr",arr);
%>
数组：${arr}  <br>
num：${num} <br>
0索引元素：${arr[0]} <br>
1索引元素：${arr[1]} <br>
<%= application.getContextPath()%>
${pageContext.request.contextPath}
${arr}
</body>
</html>
